package com.xh.rufongwallpaper.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

/**
 * 下载记录VO，用于前端展示
 *
 * @author XH
 */
@Data
public class DownloadRecordVO {
    private Long id;
    
    @JsonProperty("device_id")
    private String deviceId;
    
    @JsonProperty("wallpaper_id")
    private Long wallpaperId;
    
    @JsonProperty("wallpaper")
    private WallpaperVO wallpaper;
    
    @JsonProperty("download_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
} 